package com.piesat.quake.business.device.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.piesat.quake.business.device.model.DeviceOptions;
import com.piesat.quake.business.device.model.NetworkData;
import com.piesat.quake.business.device.model.config.network.FtpConfig;
import com.piesat.quake.business.device.model.config.network.MqttConfig;
import com.piesat.quake.business.device.model.config.network.UpdateConfig;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ${author}
 * @since 2023-03-13
 */
public interface DNetworkDataService extends IService<NetworkData> {

    NetworkData getConfig(String id, Byte type);

    NetworkData saveMqttConfig(MqttConfig config);

    NetworkData saveFtpConfig(FtpConfig config);

    NetworkData saveUpdateConfig(UpdateConfig config);

    void update(NetworkData networkData);

    void saveNetworkConfig(DeviceOptions deviceOptions);
}
